﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PrintingServer.ServerBase;
using PrintingServer;
using IPrinting;

namespace PrintingServer.ClientCommands
{
    public class ExitApp : ClientRequestPackCommand<PrintDataPackge>
    {
        public string OutParams = "";

        public ClientRequestPackSession Session;

        public PhotoPrintingServer Server = null;

        public override void ExecuteCommand(ClientRequestPackSession session, PrintDataPackge pack)
        {
            PhotoPrintingServer server = session.AppServer as PhotoPrintingServer;
            server.OnNewSessionRequestReceived(session, pack);
            server.OnAppExited(pack.InParams);
        }
    }
}
